@extends('layouts.auth')
@section('title',request()->get('type','登录'))

@section('content')
    <div class="login loginTwo">
        <div class="neirong">
            <form id="form" action="" method="post">
                {{csrf_field()}}
                <div class="item border margin-bottom12">
                    <img src="{{asset('icon/mobile@2x.png')}}" alt="">
                    <input maxlength="11" name="phone" value="{{old('phone')}}" type="text"
                           placeholder="请输入手机号">
                </div>
                @if($errors->has('phone'))
                    <span> {{$errors->first('phone')}}</span>
                @endif
                <div class="item border margin-bottom12">
                    <img src="{{asset('icon/yanzhengma@2x.png')}}" alt="">
                    <input name="code" type="text" placeholder="请输入短信验证码">
                    <span id="sms" class="werixnhuoqu">获取验证码</span>
                </div>

                @if($errors->has('code'))
                    <span> {{$errors->first('code')}}</span>
                @endif

                @if(session('msg'))
                    <span> {{session('msg')}}</span>
                @endif
                <div class="sub">
                    <input id="bgSub" disabled="true" type="submit" value="登录">
                </div>
            </form>
                <div class="goZhuCE">
                    还没有账号，<a href="{{route('register',['type'=>request()->get('type','个人租赁')])}}">去注册>>></a>
                </div>


        </div>
    </div>

@endsection